package com.ruoyi.web.controller.inventory;

import com.ruoyi.common.core.controller.BaseController;

import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.inventory.domain.Library;
import com.ruoyi.inventory.service.LibraryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/library")
public class LibraryController extends BaseController {
    @Autowired
    private LibraryService libraryService;

    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("select")
    public TableDataInfo list(Library library){
        startPage();
        List<Library> list = libraryService.selectLibraryList(library);
        return getDataTable(list);
    }

    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("selectWarning")
    public TableDataInfo list1(Library library){
        startPage();
        List<Library> list = libraryService.selectWarning(library);
        return getDataTable(list);
    }

    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("selectOrder")
    public TableDataInfo list2(Library library){
        startPage();
        List<Library> list = libraryService.selectOrder(library);
        return getDataTable(list);
    }
}
